Skip to content

fix(datafusion): reject TRUNCATE on temporary targets - #1335

Open
slfan1989 wants to merge 1 commit into
apache:mainfrom
slfan1989:paimon-rust-1334
Open

slfan1989 wants to merge 1 commit into
apache:mainfrom
slfan1989:paimon-rust-1334

Conversation

@slfan1989

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: closes #1334

Prevent TRUNCATE TABLE from clearing persistent tables hidden by temporary tables or views.

Brief change log

  • Reject temporary targets before loading the persistent table.
  • Reuse existing temporary-object resolution.
  • Add regression coverage for regular, IF EXISTS, and partition TRUNCATE statements.

Tests

  • Confirmed the regression fails before the fix.
  • Verify rejected operations preserve persistent data.
  • Verify regular and partition truncation still work after removing temporary objects.

API and Format

No.

Documentation

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] TRUNCATE clears persistent tables shadowed by temporary objects

1 participant